utils.moveColumnOption = {
    title: {
        text: '动态数据',
        subtext: '',
        textStyle: {
            color: '#fff'
        },
    },
    tooltip: {
        trigger: 'axis',
        axisPointer: {
            type: 'cross',
            label: {
                backgroundColor: '#283b56'
            }
        }
    },
    legend: {
        data:['最新成交价', '预购队列'],
        bottom: 0,
        textStyle: {
            color: '#fff'
        },
    },
    toolbox: {
        show: true,
        feature: {
            dataView: {readOnly: false},
            restore: {},
            saveAsImage: {}
        }
    },
    dataZoom: {
        show: false,
        start: 0,
        end: 100
    },
    xAxis: [
        {
            type: 'category',
            boundaryGap: true,
            data: (function (){
                var now = new Date();
                var res = [];
                var len = 10;
                while (len--) {
                    res.unshift(now.toLocaleTimeString().replace(/^\D*/,''));
                    now = new Date(now - 2000);
                }
                return res;
            })(),
            axisLine: {
                show: false,
                lineStyle: {
                    color: '#fff',
                }
            },
        },
        {
            type: 'category',
            boundaryGap: true,
            data: (function (){
                var res = [];
                var len = 10;
                while (len--) {
                    res.push(10 - len - 1);
                }
                return res;
            })(),
            axisLine: {
                show: false,
                lineStyle: {
                    color: '#fff',
                }
            },
        }
    ],
    yAxis: [
        {
            type: 'value',
            scale: true,
            name: '价格',
            max: 30,
            min: 0,
            boundaryGap: [0.2, 0.2],
            axisLine: {
                show: true,
                lineStyle: {
                    color: '#fff',
                }
            },
        },
        {
            type: 'value',
            scale: true,
            name: '预购量',
            max: 1200,
            min: 0,
            boundaryGap: [0.2, 0.2],
            axisLine: {
                show: true,
                lineStyle: {
                    color: '#fff',
                }
            },
        }
    ],
    series: [
        {
            name:'预购队列',
            type:'bar',
            xAxisIndex: 1,
            yAxisIndex: 1,
            data:(function (){
                var res = [];
                var len = 10;
                while (len--) {
                    res.push(Math.round(Math.random() * 1000));
                }
                return res;
            })(),
            itemStyle: {
                normal: {
                    color: '#277ace'
                }
            }
        },
        {
            name:'最新成交价',
            type:'line',
            data:(function (){
                var res = [];
                var len = 0;
                while (len < 10) {
                    res.push((Math.random()*10 + 5).toFixed(1) - 0);
                    len++;
                }
                return res;
            })(),
            itemStyle: {
                normal: {
                    color: 'rgb(96, 169, 0)'
                }
            },
            
        }
    ],
    itemStyle: {
        normal: {
            color: '#fff'
        }
    },
};

